package com.spring.common.entity;

import com.spring.common.validate.AddStuAndTeach;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class Teacher {
    @NotNull(message = "学生的老师姓名不能为空",groups = AddStuAndTeach.class)
    private String tecName;
    @NotNull(message = "学生的老师教授科目不能为空",groups = AddStuAndTeach.class)
    private String subject;
}
